<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑项目信息</title>
</head>
<lui:context/>
<u:View basePath="/res-datum/development" userJS="devProjectAdd" delayLoadJs="false">
<body>
<lui:dialogBody>
	<form class="m-cust" id="devProjectAddFrm">
		<sys:dropCodeSet codeTypes="db" id="codeSet"/>
		<div class="form-group row m-narrow">
		    <div class="col-sm-12 col-md-12 col-xs-12">
		    	<div class="col-sm-3 col-md-3 col-xs-3">
				    <label for="enProjectName" class="m-label required">项目英文名：</label>
				</div>
				<div class="col-sm-9 col-md-9 col-xs-9">
				    <input name="enProjectName" id="enProjectName" type="text" class="form-control m-input" data-validate='true' data-not-empty='true' 
	                    data-empty-text="项目英文名不能为空" maxlength="100" data-0-regexp="^[a-zA-Z_][a-zA-Z0-9_]{1,32}$" 
	                    data-0-error-text="格式不合法<br>格式：以英文26个字母开头，大小写随意，内容仅能为26个英文字母或下划线" data-prompt="dialog">
				</div>
		    </div>
		</div>
		<div class="form-group row m-narrow">
		    <div class="col-sm-12 col-md-12 col-xs-12">
		    	<div class="col-sm-3 col-md-3 col-xs-3">
				    <label for="cnProjectName" class="m-label required">项目中文名：</label>
				</div>
				<div class="col-sm-9 col-md-9 col-xs-9">
				    <input name="cnProjectName" id="cnProjectName" type="text" class="form-control m-input" data-validate='true' data-not-empty='true'
				    	data-empty-text="项目中文名不能为空" maxlength="100">
				</div>
		    </div>
		</div>
		<div class="form-group row m-narrow">
		    <div class="col-sm-12 col-md-12 col-xs-12">
		    	<div class="col-sm-3 col-md-3 col-xs-3">
				    <label for="packagePath" class="m-label">包路径：</label>
				</div>
				<div class="col-sm-9 col-md-9 col-xs-9">
				    <input name="packagePath" id="packagePath" class="form-control m-input" maxlength="300">
				</div>
		    </div>
		</div>
		<div class="form-group row m-narrow">
		    <div class="col-sm-12 col-md-12 col-xs-12">
		    	<div class="col-sm-3 col-md-3 col-xs-3">
				    <label for="db" class="m-label">数据库：</label>
				</div>
				<div class="col-sm-9 col-md-9 col-xs-9">
				    <lui:dropList id="db" name="db" className="form-control m-input" dropValues="codeSet.db" showSelectAll="true" showSelectName="请选择"/>
				</div>
		    </div>
		</div>
		<div class="form-group row m-narrow">
		    <div class="col-sm-12 col-md-12 col-xs-12">
		    	<div class="col-sm-3 col-md-3 col-xs-3">
				    <label for="comment" class="m-label">备注：</label>
				</div>
				<div class="col-sm-9 col-md-9 col-xs-9">
				    <textarea name="comment" id="comment" class="form-control m-input" rows="2" maxlength="300"></textarea>
				</div>
		    </div>
		</div>
		<input hidden="hidden" name="id">
		<c:if test="${not empty requestScope.id }">
			<lui:ajax id="findOneAjax" url="${ctx }/datum/devProj/find/id/${requestScope.id }" autoSend="true"
				onSuccess="DevProjectAddPage.findOneSucc"/>
		</c:if>
		<lui:ajax id="saveAjax" url="${ctx }/datum/devProj/save/one" onSuccess="DevProjectAddPage.onSaveSucc" formQuery="#devProjectAddFrm"
			formSubmit="true" type="post" contentType="application/x-www-form-urlencoded"/>
		
	</form>
</lui:dialogBody>
<lui:dialogFooter>
	<button class="btn btn-primary m-btn" type="button" onclick="DevProjectAddPage.save()">保存</button>
    <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
</lui:dialogFooter>
</body>
</u:View>
</html>